package com.sc.nft.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.OrderStatusEnum;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class OrderPageRequest extends PageRequest {


    @ApiModelProperty("用户手机号")
    private String phone;
    @ApiModelProperty("订单号")
    private String orderNo;
    @ApiModelProperty("商品编号")
    private String productUuId;
    @ApiModelProperty("商品名称")
    private String firstTitle;
    @ApiModelProperty("订单状态")
    private OrderStatusEnum status;
    @ApiModelProperty("开始订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startOrderTime;
    @ApiModelProperty("结束订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endOrderTime;
    @ApiModelProperty("开始订单支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startPayTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("结束订单支付时间")
    private Date endPayTime;


}
